package com.itheima.grow.util;

import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.RandomUtils;

@Slf4j
public class OrderCodeUtil {

    public static String createOrderCode(String codePrefix) {
        return codePrefix + RandomUtils.nextInt(10000, 99999) + DateUtil.formatCurrentDate(DateUtil.FORMAT_1);
    }
}
